#ifndef CITYSETDLG_H
#define CITYSETDLG_H

#include <QWidget>
#include "mybutton.h"
#include "showlabel.h"
#include "keynum.h"


#define CODE_NUM 4
struct city_code
{
    QString name;
    QString code;
};

class CitySetDlg : public QWidget
{
    Q_OBJECT
public:
    explicit CitySetDlg(QWidget *parent = 0);
    void setItem(ShowLabel *item,QString *code);
    int writeCode(QString code);
signals:

public slots:
    void goSet();
private:
    Button *ok;
    Button *cancel;
    QLabel *label_pic_bg;
    KeyNum *keyNum;
    ShowLabel *inputItem;
    QString *inputCode;
    struct city_code codeList[CODE_NUM];
};





#endif // CITYSETDLG_H
